package com.company.state;

/**
 * 上下文角色，篮球比赛上下文
 * Game是篮球比赛的缩写
 */
public class GameContext {
    //持有比赛状态的实例引用，即委托给当前具体状态对象处理
    private GameState state;


    public void setState(GameState state) {
        this.state = state;
        this.state.handle();
        System.out.println("=======================================================");
    }
}
